<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    .login {
        background-color: pink;
    }
</style>

<body>
    <div class="box">
        首页结构
    </div>
    <div class="login">
        登录结构+66666
    </div>
</body>
<script>
    const box = document.querySelector('.box')
    box.addEventListener('click', function (e) {
        console.log('点我')
    })
</script>

</html>